using UnityEngine;

public class UnitZManager : MonoBehaviour
{
	//public int TargetFrameRate = 60;

	public bool IsMobile;

	private void Start()
	{
		//Application.targetFrameRate = TargetFrameRate;
	}

	private void Awake()
	{
		UnitZ.gameNetwork = (GameNetwork)UnityEngine.Object.FindObjectOfType(typeof(GameNetwork));
		UnitZ.gameManager = (GameManager)UnityEngine.Object.FindObjectOfType(typeof(GameManager));
		UnitZ.characterManager = (CharacterManager)UnityEngine.Object.FindObjectOfType(typeof(CharacterManager));
		UnitZ.itemManager = (ItemManager)UnityEngine.Object.FindObjectOfType(typeof(ItemManager));
		UnitZ.itemCraftManager = (ItemCrafterManager)UnityEngine.Object.FindObjectOfType(typeof(ItemCrafterManager));
		UnitZ.playerManager = (PlayerManager)UnityEngine.Object.FindObjectOfType(typeof(PlayerManager));
		UnitZ.playerSave = (PlayerSave)UnityEngine.Object.FindObjectOfType(typeof(PlayerSave));
		UnitZ.levelManager = (LevelManager)UnityEngine.Object.FindObjectOfType(typeof(LevelManager));
		UnitZ.aiManager = (AIManager)UnityEngine.Object.FindObjectOfType(typeof(AIManager));
		UnitZ.Hud = (PlayerHUDCanvas)UnityEngine.Object.FindObjectOfType(typeof(PlayerHUDCanvas));
		UnitZ.dedicatedManager = (DedicatedManager)UnityEngine.Object.FindObjectOfType(typeof(DedicatedManager));
		UnitZ.GameKeyVersion = Application.version;
		UnitZ.IsMobile = IsMobile;
	}
}
